package exam;

/**
 * @Author 刘牌
 * @Date 2020/2/8 0008 14:26
 * @Version 1.0
 */

class Animal {
    String place="龟兹";
    Animal() {
        System.out.print(this.place+"-");
    }
    Animal(String place) {
        this();
        this.place = place;
    }
}
class Horse extends Animal {
    protected String name;
    protected String skill;
    public Horse() {
        System.out.print(this.name+"-");
    }
    public Horse(String name, String skill) {
        super("楼兰");
        this.name = name;
        this.skill = skill;
        System.out.print(this.place+"-");
    }
}
class HanxueHorse extends Horse {
    public HanxueHorse(String name, String skill, String place) {
        super(name, skill);
        this.place = place;
        System.out.print(this.place);
    }
    public String getPlace() {
        return place;
    }
    public void setPlace(String place) {
        this.place = place;
    }
}

class E3 {
    public static void main(String[] args) {
        HanxueHorse hanxue = new HanxueHorse("汗血宝马","日行千里","月 氏");
    }
}
